package com.gjw.controller;


import com.gjw.bean.Student;
import com.gjw.result.ResultBean;
import com.gjw.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    StudentService studentService;

    @GetMapping("/test")
    public ResultBean test(){
        Student student = studentService.selectById("01");
        return ResultBean.success(student);
    }

}
